package com.eshop.modules.product.service;

import com.eshop.modules.product.service.dto.ProductFormatDto;
import com.eshop.modules.product.service.dto.FromatDetailDto;
import java.util.List;
import java.util.Map;
import com.eshop.modules.product.domain.StoreProductAttrValue;
import com.eshop.modules.product.domain.StoreProductAttr;
import com.eshop.common.service.BaseService;

public interface StoreProductAttrService extends BaseService<StoreProductAttr>
{
    void incProductAttrStock(final Integer num, final Long productId, final String unique, final String type);
    
    void decProductAttrStock(final int num, final Long productId, final String unique, final String type);
    
    StoreProductAttrValue uniqueByAttrInfo(final String unique);
    
    Map<String, Object> getProductAttrDetail(final long productId);
    
    void insertYxStoreProductAttr(final List<FromatDetailDto> items, final List<ProductFormatDto> attrs, final Long productId);
}
